/* Customized CSS
--------------------------------------*/
/* emoji font */
@font-face {
  font-family: "Emoji";
  src: url("../fonts/seguiemj.eot");
  src: url("../fonts/seguiemj.eot?#iefix") format("embedded-opentype"),
       url("../fonts/seguiemj.woff") format("woff"),
       url("../fonts/seguiemj.ttf") format("truetype"),
       url("../fonts/seguiemj.svg") format("svg");
}

/* global css */
body {
  padding-top: 50px;
}
*.modal-open {
  padding-right: 0 !important;
  overflow-y: hidden;
}
@media (min-width: 768px) {
  .navbar .container .navbar-brand,
  .navbar .container-fluid .navbar-brand {
    margin-left: -15px;
  }
}
.btn-circle {
  width: 30px;
  height: 30px;
  padding: 6px 0;
  border-radius: 15px !important;
  text-align: center;
  font-size: 12px;
  line-height: 1.428571429;
}
.btn-circle.btn-lg {
  width: 40px;
  height: 40px;
  padding: 5px 10px;
  border-radius: 20px !important;
  font-size: 16px;
  line-height: 1.33;
}
.ui-draggable {
  right: auto;
  bottom: auto;
  background: none;
}
.ui-draggable .ui-draggable-handle {
  cursor: move;
}
.tab-content>.tab-pane {
  margin-top: 15px;
  overflow: auto;
}
.tab-content>.tab-pane table {
  margin-bottom: 0;
}
.input-group.x-select {
  width: 100%;
}
.input-group.x-select>.input-group-btn {
  position: static;
}
.input-group.x-select>.input-group-btn>.dropdown-menu {
  width: 100%;
  overflow: hidden;
}
.input-group.x-select>.input-group-btn>.dropdown-menu>li>a {
  padding-left: 12px;
  padding-right: 12px;
}
.input-group-addon select {
  margin-top: 0;
  height: 20px;
}
.input-group-addon .checkbox-inline {
  padding-top: 3px;
}
.input-group-sm>.input-group-addon select {
  margin-top: 0;
  height: 18px;
}
.table input[type="radio"],
.table input[type="checkbox"] {
  margin: 7px 0 0;
}
.modal-dialog>.modal-content {
  height: 100%;
}
.modal-body>.table:last-child,
.modal-body>.form-group:last-child {
  margin-bottom: 0;
}
.modal-footer .btn-group+.btn {
  margin-left: 5px;
  margin-bottom: 0;
}
.modal-body .x-emoji {
  margin-left: 15px;
}
@media (max-width: 992px) {
  .modal-body .x-emoji {
    margin-left: 5px;
  }
}
.modal-body .x-emoji>div {
  display: inline-block;
  width: 40px;
  height: 40px;
  text-align: center;
  vertical-align: middle;
}
.modal-body .x-emoji>div>a {
  display: inline-block;
  margin: 0;
  padding: 2px;
  border: solid 1px transparent;
  cursor: pointer;
  text-decoration: none;
}
.modal-body .x-emoji>div>a:hover {
  border-color: #ccc;
}

/* page container */
.x-page-container {
  height: calc(100vh - 50px);
  overflow: auto;
}
.x-page-header {
  background-color: #eee;
  margin-bottom: 20px;
  border: solid 1px #ddd;
  border-width: 1px 0;
  border-top-color: transparent;
}
.x-page-header>div {
  padding: 4px;
}
.x-page-header .x-page-title {
  display: inline-block;
  margin-bottom: 0;
  padding: 6px 12px;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  line-height: 1.42857143;
  vertical-align: middle;
  cursor: default;
  background-image: none;
  background-color: transparent;
  border: none;
  white-space: nowrap;
}
/* page header buttons */
.x-page-header .btn-group,
.x-page-header :not(.btn-group)>.btn {
  float: left;
}
.x-page-header .dropdown-menu .btn {
  float: none;
}
.x-page-header .btn+.btn-group,
.x-page-header .btn-group+.btn,
.x-page-header .btn-group+.btn-group,
.x-page-header :not(.btn-group)>.btn+.btn {
  margin-left: 4px;
}

.x-page-body {
  position: relative;
}
.x-page-body fieldset>legend {
  font-size: 15px;
}
.x-page-body .x-page-scope {
  overflow: auto;
}
.x-page-body pre.x-output {
  font-size: 13px;
  /* white-space: pre-wrap; */
  /* white-space: -moz-pre-wrap; */
  /* white-space: -pre-wrap; */
  /* white-space: -o-pre-wrap; */
  /* word-wrap: break-word; */
}
.x-page-body .x-page-scope pre,
.x-page-body textarea.x-page-scope,
.x-page-body .x-page-scope textarea,
.x-page-body .x-page-scope .x-request pre,
.x-page-body .x-page-scope .x-response pre,
.x-page-body .x-page-scope .x-mapper pre {
  outline: none;
  margin: 0;
  width: 100%;
  height: 100%;
}
.x-page-body .x-page-scope>.form-group:last-child {
  margin-bottom: 0;
}
.x-page-body .x-page-scope.x-markdown {
  padding: 15px 15px 0;
  border: 1px solid #ccc;
  border-radius: 0;
}
.x-page-body .x-page-scope.x-markdown pre {
  margin-bottom: 15px;
}
.x-page-body .x-page-scope pre.alert {
  height: auto;
}
.x-response-tab .nav-tabs>li:last-child {
  float: right;
}

.x-page-footer {}

/* security */
.x-security .modal-body .x-captcha {
  text-align: center;
}
.x-security .modal-body .x-captcha>img {
  cursor: pointer;
}

/* z-tree */
.x-tree {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 35px;
}
.x-tree .x-tree-filter {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background-color: #fff;
  opacity: 1;
  z-index: 20;
}

/* local css */
form .x-invalid {
  border-color: #a94442;
}
form p.text-danger {
  margin: 0;
}
.x-module-list .caption h1 {
  margin-top: 30px;
  margin-bottom: 20px;
}
.x-module-list .caption h1.x-readonly {
  margin-top: 42px;
  margin-bottom: 42px;
}
.x-module-list .caption p {
  margin-bottom: 0;
}
.x-btn-list .dropdown-menu .btn {
  border: none;
  text-align: left;
  padding-top: 3px;
  padding-bottom: 3px;
}
.x-link {
  text-decoration: underline;
}
.x-output .ace-tm .ace_cursor {
  color: transparent;
}
.x-output .ace_hidden-cursors .ace_cursor {
  opacity: 0;
}

/* ace editor */
.x-editor {
  position: relative;
  height: 100%;
}
.x-editor>pre {
  margin-bottom: 0;
}
.x-editor .x-editor-tool {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px/1.42857143;
  white-space: normal;
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fff;
  z-index: 10;
}
.x-editor .x-editor-tool .x-toolbar {
  padding: 2px;
}
.x-editor .x-editor-tool.x-goto-top {
  top: auto;
  bottom: 2px;
}
.x-editor .x-editor-tool .x-font-list {
  min-width: auto;
  cursor: default;
}
.x-editor .x-editor-tool .x-font-list .h1,
.x-editor .x-editor-tool .x-font-list .h2,
.x-editor .x-editor-tool .x-font-list .h3 {
  margin-top: 0;
  margin-bottom: 0;
}

/* markdown */
.x-markdown p,
.x-markdown table,
.x-markdown pre {
  margin-bottom: 15px;
}
.x-markdown table {
  /* table-layout: fixed; */
}
.x-markdown table td,
.x-markdown table th {
  word-wrap: break-word;
  word-break: break-all;
}
.x-markdown blockquote {
  font-size: 14px;
  padding: 10px;
  margin: 0 0 15px;
  border-left: 5px solid #ccc;
  background-color: #f5f5f5;
}
.x-markdown blockquote p {
  margin-bottom: 10px;
}
.x-markdown blockquote p:last-child {
  margin-bottom: 0;
}
.x-markdown h1,
.x-markdown h2,
.x-markdown h3 {
  margin-top: 5px;
  margin-bottom: 15px;
}
.x-markdown img {
  max-width: 100%;
}
.x-markdown .hljs {
  padding: 0;
  background-color: transparent;
}

/* blog */
.x-blog {}
.x-blog .x-search {
  width: 400px;
}
.x-blog .x-blog-category .badge {
  padding: 5px 10px;
}
.x-blog .x-blog-category .pull-right {
  margin-right: 5px;
}
.x-blog .x-blog-article .label {
  margin-right: 5px;
}
.x-blog .x-blog-article .row {
  margin-bottom: 20px;
}
.x-blog .x-blog-article .row>.col-md-12 {
  font-family: "Emoji";
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.x-blog .x-blog-article .row>.col-md-12>h3 {
  margin-top: 0;
}
.x-blog .x-blog-viewer {
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.x-blog .x-blog-viewer .x-markdown {
  padding-top: 15px;
  padding-bottom: 0;
}
.x-blog .x-blog-viewer .x-markdown img {
  max-width: 100%;
}
.x-blog .x-blog-viewer .x-header-list {
  position: fixed;
  top: 100px;
  left: calc((100vw + 1170px) / 2 + 20px);
  right: 60px;
  max-height: 70%;
  overflow-y: hidden;
  background-color: #fff;
}
@media (max-width: 1440px) {
  .x-blog .x-blog-viewer .x-header-list {
    display: none;
  }
  .x-blog .x-blog-viewer .x-sidebar {
    top: calc((100vh - 133px) / 2 + 50px);
  }
  .x-blog .x-blog-viewer .x-sidebar .btn:first-child {
    display: none;
  }
}
.x-blog .x-blog-viewer .x-header-list.x-hover {
  overflow-y: auto;
}
.x-blog .x-blog-viewer .x-header-list>ul>li:last-child {
  margin-bottom: 0;
}
.x-blog .x-blog-viewer .x-sidebar {
  position: fixed;
  top: calc((100vh - 176px) / 2 + 50px);
  right: 20px;
}
.x-blog .x-blog-viewer .x-sidebar .btn-group-vertical .btn {
  margin: 0 0 3px 0;
  outline: none;
  outline-color: rgba(255, 255, 255, 0);
}
.x-blog .x-blog-viewer .x-sidebar .btn-group-vertical .btn:last-child {
  margin-bottom: 0;
}

/* full screen */
.x-full-screen {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  width: 100% !important;
  height: 100% !important;
  background-color: #fff;
  z-index: 1030;
}
.x-full-screen.x-frame {
  padding: 15px;
}
.x-full-screen .x-editor>pre {
  min-width: 100% !important;
  min-height: 100% !important;
}
.x-full-screen .x-grid,
.x-full-screen .x-grid .x-page-scope {
  padding: 0;
  height: 100% !important;
}
.x-full-screen .x-grid .x-page-scope.x-markdown {
  padding: 15px 15px 0;
}
